/*
 * 1、Object.prototype.toString 返回当前实例的字符串形式
 * 2、Object.prototype.toLocalString 以当地对应格式返回当前实例的字符串形式
 * 3、Object.prototype.valueOf 返回当前实例中所包裹的原始值
 */

let n = new Object( 11000 );
console.log( n );
console.log( typeof n ); // object

console.log( n.toString() );
console.log( n.toLocaleString() );

console.log( '- - - - - - - - - - - - - - - - - -' );

let x = new Date(); // Date 是 Object 类的子类
console.log( x );
console.log( x.toString() );
console.log( x.toLocaleString() );

console.log( '- - - - - - - - - - - - - - - - - -' );

let instance = new Object( 9527 );
console.log( instance , typeof instance );

let primitive = instance.valueOf();
console.log( primitive , typeof primitive );


